package com.fzb.zrlog.simple.dao.impl;

import com.fzb.common.dao.impl.DAO;
import com.fzb.zrlog.simple.dao.api.IPluginDAO;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Plugin extends DAO implements IPluginDAO {

    public Plugin() {
        tableName = "plugin";
        pk = "pluginId";
    }

    @Override
    public List<Map<String, Object>> queryAll() {
        try {
            return queryList(ALL);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return new ArrayList<>();
    }

    @Override
    public void updatePluginStatus(String pluginName, Integer status) {
        // TODO Auto-generated method stub

    }

}
